<script lang="ts">
	import { cn } from "$lib/utils.js";
	import type { HTMLAttributes } from "svelte/elements";

	let { class: className, children, ...restProps }: HTMLAttributes<HTMLHeadingElement> = $props();
</script>

<h2
	class={cn(
		"font-heading [&+]*:[code]:text-xl mt-10 scroll-m-28 text-xl font-medium tracking-tight first:mt-0 lg:mt-16 [&+.steps>h3]:!mt-4 [&+.steps]:!mt-0 [&+h3]:!mt-6 [&+p]:!mt-4",
		className
	)}
	{...restProps}
>
	{@render children?.()}
</h2>
